﻿using System;
using System.Collections.Generic;
using System.Text;

namespace UnionnetClient.Model
{
	abstract public class StateBase
	{
		public StateBase(StateMachine stateMachine)
		{
			this.stateMachine = stateMachine;
		}

		public virtual void Login()
		{
		}

		public virtual void Logout()
		{
		}

		public virtual void Exit()
		{
		}

		internal virtual void SetAccount(string username, string passowrd)
		{
			AppEnvironment.Settings.SetAccoutInside(username, passowrd);
		}

		protected StateMachine stateMachine;
	}
}